<?php

/**
 * @Author: Wang Chunsheng 2192138785@qq.com
 * @Date:   2020-03-29 20:36:57
 * @Last Modified by:   Wang chunsheng  email:2192138785@qq.com
 * @Last Modified time: 2020-06-12 12:15:09
 */
use yii\helpers\Html;
use common\widgets\MyActiveForm;

/* @var $this yii\web\View */
/* @var $model common\addons\diandi_shop\models\GoodsLabel */
/* @var $form yii\widgets\MyActiveForm */
?>


<div class="goods-label-form">

    <?php $form = MyActiveForm::begin(); ?>

    <?= $form->field($model, 'label')->textInput(['maxlength' => true]); ?>

    <div class="form-group field-goodslabel-color required">
        <div class="row row-box">
            <div class="col-xs-2 col-sm-2 text-right">
                <label for="goodslabel-color" class="control-label">
                    标签颜色
                </label>
            </div>
            <div class="col-xs-9 col-sm-9">
                <el-input placeholder="请选择" v-model="color">
                    <template slot="append">
                        <el-color-picker v-model="color" size="mini" ></el-color-picker>
                    </template>
                </el-input>
            </div>
        </div>
    </div>
    
    <?= Html::activeHiddenInput($model, 'color',['v-model' => 'color']); ?>

    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <?= Html::submitButton('保存', ['class' => 'btn btn-success']); ?>
        </div>
    </div>

    <?php MyActiveForm::end(); ?>

</div>